<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	import="org.OpenGeoPortal.SiteIndependent.Database.*, org.campusit.DatabaseTable.DatabaseTable.DatabaseRow, java.util.*"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Database Test</title>
</head>
<body>

<%
	String result = "No Records Found";
LocalLayerTable metaDataTable = new LocalLayerTable();
List<DatabaseRow> rows = metaDataTable.selects();
if (rows != null)
	result = "First record: " + rows.get(0).toString();
%>
<h2>Database Test Page</h2>

<%
	if (rows == null)
	{
		out.println("<p>No Data Found </p>");
	}
	else
	{
		out.println("<p>Number Of Records: " + rows.size() + "</p>");
		out.println("<p>First record: " + rows.get(0).toString() + "</p>");
	}
%>


</body>
</html>